
#ifndef MAG_H_
#define MAG_H_

#include "stm32f4xx.h"
#include "global.h"

class MAG_Class
{
public:
    void Mag_Data_Deal_Task(u8 dT_ms,s16 mag_in[],float z_vec_z,float gyro_deg_x,float gyro_deg_z);

	u8 mag_CALIBRATE;
	s16 value[VEC_XYZ];
    s16 max_t[VEC_XYZ];
    s16 min_t[VEC_XYZ];
};

extern MAG_Class mag;
    
#endif //MAG_H_
